<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function max(m,n){
            if(m > n){
                alert('最大值' + m);
            }else{
                alert('最大值' + n);
            }
        }
        max(+prompt('请输入第一个值'), +prompt('请输入第二个值'));
    </script>
</body>
</html>